package lab02.test06;

public class Test06 {
    public static void main(String[] args) {
        Triangle triangle = new Triangle(3, 4, 5);//输入三角形的三边
        Ladder ladder = new Ladder(2.3, 3.3, 4.3);//矩形上底、下底、高
        Circle circle = new Circle(10, 3.1415926);//圆的半径、π
        //输出三角形
        System.out.println("---------------------");
        System.out.println("能否围成三角形：" + triangle.judge());
        System.out.println("三角形的周长：" + triangle.circumference());
        System.out.println("三角形的面积：" + triangle.area());
        triangle.change(2, 6, 7);//修改后
        System.out.println("能否围成三角形：" + triangle.judge());
        System.out.println("三角形的周长：" + triangle.circumference());
        System.out.println("三角形的面积：" + triangle.area());

        //梯形的面积
        System.out.println("---------------------");
        System.out.println("梯形的面积为：" + ladder.area());
        //圆形
        System.out.println("---------------------");
        System.out.println("圆形的面积为：" + circle.area());
        System.out.println("圆形的周长为：" + circle.circumference());
    }
}
